<template>
	<div>
		<van-nav-bar
		  title="创建文档"
		  left-arrow
		  @click-left="back()"
		/>
		<div style="color: #315355;text-align: center;font-size: 13px;margin: 10px;">本仓库：测试用例1 可添加 2 条文档</div>
		
		<van-field
		  v-model="message"
		  rows="6"
		  autosize
		  label="内容"
		  type="textarea"
		  maxlength="200"
		  placeholder="请输入内容"
		  show-word-limit
		/>
		
		<van-field v-model="name" label="名称" placeholder="请输入名称"/>
		
		<div style="text-align: center;padding-top: 30px;">
			<van-button plain hairline type="info" class="Tianjia" style="color: #004444;" @click="HHpost()">添加</van-button>
		</div>
	</div>
</template>

<script>
import { Dialog } from 'vant';
export default {
	
	data() {
		return {
			message : '',
			name : ''
		};
	},
	methods: {
		back() {
			history.go(-1);
		},
		HHpost() {
			Dialog.alert({
			  title: '温馨提示',
			  message: '添加失败',
			}).then(() => {
			  // on close
			});
		}
	},
};
</script>

<style>
/* 隐藏底部导航 */
.van-tabbar {
	display: none;
}
.Tianjia {
	padding-left: 50px;padding-right: 50px;border-color: #004444;
}
</style>
